import { ref } from "vue";

const useCommon = () => {
    const pageRef = ref(1);

    const setPage = (currentPage) => {
        pageRef.value = currentPage;
        return pageRef; //保证setPage有返回值，并且为true
    }

    return {
        pageRef,
        setPage
    }
}

export default useCommon;